<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#include "/admin/include/head.htm">
<script type="text/javascript">
	var grid;
	$(function(){
		 grid = $("#maingrid").ligerGrid({
            columns: [
				{display: 'ID', name: 'id', width:50, align: 'center', isAllowHide: false},
				{display: '商品名称', name: 'name', align: 'center', width: 200 },
				{display: '商品编码', name: 'code', align: 'center', width: 100 },
				{display: '商品分类', name: 'goodsCategory.name', align: 'center', width: 120 },
				{display: '规格', name: 'spec', align: 'center', width: 100 },
				{display: '生产厂商', name: 'manufacturer', align: 'center', width: 200},
				{display: '批准文号', name: 'authorizeNumber', align: 'center', width: 150},
				{display: '包装单位', name: 'packingUnit', align: 'center', width: 100},
				{display: '销售价', name: 'marketPrice', align: 'center', width: 80}
			],  pageSize:20, url: 'queryGoodsData.jhtml',toolbar: {}, width: '100%', height:'100%', enabledSort: true
        });
		
        $("#pageloading").hide();
		LG.loadToolbar(grid);
		//绑定搜索按钮
		LG.search(grid);
	});
	
	//查看商品
	function goodsDetail(){
		var selected = grid.getSelected();
		if (!selected) { 
			LG.tip('请选择行!'); 
			return; 
		}
		top.f_addTab(null, '查看商品', '${base}/admin/b2c/supervise/goodsDetail.jhtml?id=' + selected.id);
	};
</script>
</head>
<body style="padding:10px; overflow:hidden;">
	<div id="functions">
		<div class="clearfix">
			<div style="float:left;">
				<span>
					商品名称：<input type="text" class="formText" name="search_LIKE_name"/>
				</sapn>
				<span>
					商品编码：<input type="text" class="formText" name="search_LIKE_code"/>
				</sapn>
				<span>
					商品分类：<input type="text" class="formText" name="search_LIKE_goodsCategory.name"/>
				</sapn>
				<span>
					批准文号：<input type="text" class="formText" name="search_LIKE_authorizeNumber"/>
				</sapn>
				<input type="button" class="button" value="搜索" id="search"/>
				<a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>
			</div>
		</div>
	</div>
	<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>